﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

using MakeIT.MakeIT.Laundy.Agromotor.Site.Entidades;
using MakeIT.MakeIT.Laundy.Agromotor.Site.Negocios;

namespace MakeIT.MakeIT.Laundy.Agromotor.Site.Apresentacao
{
    public partial class Default1 : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                this.repeaterMarca.DataSource = AgromotorsiteDAO.getMarcamodelos();
                this.repeaterMarca.DataBind();
            }
        }

        protected void btnBuscaPecaClick(object sender, EventArgs e)
        {
            string idMarcaModelo = ((Button)sender).CommandArgument;
            this.Response.Redirect("~/ProdutosBusca.aspx?idMarcaModelo="+idMarcaModelo);
        }
    }
}
